package top.soulblack.purchasesale.controller.stock;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import top.soulblack.purchasesale.model.VO.GoodsToQueryVO;
import top.soulblack.purchasesale.service.GoodsService;

import java.util.List;

/**
 * @Author: 韦溜溜
 * @Description:
 * @Date: Create in 16:21 2019/6/9
 */
@RequestMapping("/store_query")
@Controller
public class StoreQueryController {

    @Autowired
    private GoodsService goodsService;


    @GetMapping("/goodList")
    @ResponseBody
    List<GoodsToQueryVO> goodList(){
        return goodsService.selectGoodListToQuery();
    }

    @GetMapping("/onlyGood")
    @ResponseBody
    List<GoodsToQueryVO> onlyGood(){
        return goodsService.selectSKUToQuery();
    }


}
